define(["js/jquery.json.min.js"],function(jqjson){
	var ajax = {

		//报名
		insertRegisterUserAjax:function(data){
			return $.ajax({
				type:"post",
				url:"/api/register/insertRegisterUser",
				contentType : 'application/json;charset=utf-8',
				data: $.toJSON(data),
			});
		},


		//获取报名最大人数
		getMaxNumAjax:function(data){
			return $.ajax({
				type:"get",
				url:"/api/register/getMaxNum",
				data: data,
			});
		},

		searchInfoAjax:function(data){
			return $.ajax({
				type:"get",
				url:"/api/register/queryRegisterUser",
				data: data,
			});
		},

		deleteRowAjax:function(data){
			return $.ajax({
				type:"post",
				url:"/api/register/deleteRow",
				data: data,
			});
		},

		searchManageAjax:function(data){
			return $.ajax({
				type:"get",
				url:"/api/register/queryManage",
				data: data,
			});
		},

		checkRegisterAjax:function(data){
			return $.ajax({
				type:"get",
				url:"/api/register/checkRegister",
				data: data,
			});
		},

	}

	return ajax;
});